package com.example.swaggerdemo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杨光
 * @date 2022年02月10日 13:25
 */
@ApiModel(value = "学生对象")
public class Student {

    @ApiModelProperty(name = "sname",value = "学生姓名",dataType = "String",notes="学生姓名")
    private String sname;
    @ApiModelProperty(name = "code",value="学号",dataType = "String",notes="学生学号")
    private String code;
    @ApiModelProperty(name = "code",value="年龄",dataType = "Integer",notes="学生年龄")
    private Integer age;

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
